﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="LookupParams.aspx.cs" Inherits="TVC_WEB.Admin.Page.LookupParams"
    Title="Untitled Page" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlacebody" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <table class="tableForm" id="tblManagePartner">
        <tr>
            <td colspan="4" align="center" class="formTitle">
                Look up List -
                <asp:Literal ID="liTitle" runat="server"></asp:Literal>
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <div id="divError">
                    <asp:Label ID="lbErr" runat="server"></asp:Label>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <table>
                    <tr>
                        <td>
                        </td>
                        <td>
                            Code
                        </td>
                        <td>
                        </td>
                        <td>
                            <telerik:RadTextBox ID="txtCODE" runat="server" MaxLength="30">
                            </telerik:RadTextBox>
                            <telerik:RadTextBox ID="txtID" runat="server" Visible="False" Width="50px">
                            </telerik:RadTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            Description
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            <telerik:RadTextBox ID="txtNAME" runat="server" Width="300px">
                            </telerik:RadTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            Rank
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            <telerik:RadTextBox ID="txtALT" runat="server">
                            </telerik:RadTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            Status(C/S/Blank)
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            <telerik:RadTextBox ID="txtStatus" runat="server" Width="25px" MaxLength="1">
                            </telerik:RadTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            Image
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            <telerik:RadUpload ID="upPicture" runat="server" ControlObjectsVisibility="None"
                                TargetFolder="~/Upload/Images">
                            </telerik:RadUpload>
                        </td>
                    </tr>
                </table>
            </td>
            <td>
                <asp:Image ID="img" runat="server" Width="80px" Height="80px" />
            </td>
        </tr>
    </table>
    <div style="width: 350px; margin: auto">
        <telerik:RadButton ID="btnNew" runat="server" Text="Add New" SplitButtonCssClass=""
            SplitButtonPosition="Right" OnClick="btnNew_Click" Width="100px">
        </telerik:RadButton>
        <telerik:RadButton ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click"
            Width="100px">
        </telerik:RadButton>
        <telerik:RadButton ID="btnDelete" runat="server" Text="Delete" OnClick="btnDelete_Click"
            Width="100px">
        </telerik:RadButton>
    </div>
    <telerik:RadGrid ID="dgvList" runat="server" AutoGenerateColumns="False" GridLines="None"
        Skin="Office2007" AllowFilteringByColumn="True" AllowMultiRowSelection="True"
        AllowPaging="True" AllowSorting="True" OnItemCommand="dgvList_ItemCommand" ShowGroupPanel="True"
        OnNeedDataSource="dgvList_NeedDataSource">
        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Office2007">
        </HeaderContextMenu>
        <MasterTableView PageSize="20" DataKeyNames="Category,Code">
            <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridButtonColumn CommandName="Selected" FilterControlAltText="Filter column column"
                    Text="Edit" UniqueName="column3">
                </telerik:GridButtonColumn>
                <telerik:GridClientSelectColumn FilterControlAltText="Filter column column" UniqueName="column8">
                </telerik:GridClientSelectColumn>
                <telerik:GridBoundColumn FilterControlAltText="Filter column1 column" HeaderText="Code"
                    UniqueName="column1" DataField="Code">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn FilterControlAltText="Filter column2 column" HeaderText="Description"
                    UniqueName="column2" DataField="Description">
                </telerik:GridBoundColumn>
                <telerik:GridImageColumn FilterControlAltText="Filter column4 column" HeaderText="Picture"
                    DataImageUrlFields="Description1" DataImageUrlFormatString="Uploads/Images/{0}" ImageHeight="50px"
                    ImageWidth="50px" UniqueName="column4">
                </telerik:GridImageColumn>
                <telerik:GridBoundColumn DataField="Status" FilterControlAltText="Filter column column"
                    HeaderText="Status" UniqueName="column">
                </telerik:GridBoundColumn>
            </Columns>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
        <ClientSettings AllowDragToGroup="True">
            <Selecting AllowRowSelect="True" />
        </ClientSettings>
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
    </telerik:RadGrid>
</asp:Content>
